<?php 
	foreach($this->data['category_tree'] as $category):
	echo"<option value='".$category['id']."'>";
		if($category['depth']>1):
			for($i=0; $i<$category['depth']; $i++):
				switch($category['depth']){
				case 2: echo"&nbsp;&nbsp;";break;
				case 3: echo"&nbsp;&nbsp;&nbsp;";break;
				case 4: echo"&nbsp;&nbsp;&nbsp;&nbsp;";break;
				default: echo"&nbsp;";
				} 
			endfor;
		endif;
	 echo $category['category_name']."</option>";				
	endforeach;
?>